//
//  sprite.h
//  PixelDudes
//
//  Created by Noah Figg on 3/23/13.
//  Copyright (c) 2013 PixelDudes. All rights reserved.
//

#ifndef _SPRITE_H_
#define _SPRITE_H_

#include "SDL.h"
#include "render_target.h"
#include <string>

class Sprite : public RenderTarget
{
protected:
public:
    Sprite(std::string imageName, bool alphaFormat);
    ~Sprite();
    //SDL_Surface* image;
    void Render(SDL_Surface* screen);
	virtual void setResource(std::string imageName, bool alphaFormat);
	std::string getResource();
	void setUnmanagedImage(SDL_Surface* image);
	SDL_Surface* getRenderImage();
	void getScreenCoords(Sint16 &x, Sint16 &y);

	std::string resourceName;
	SDL_Surface* unmanagedImage;
	bool alphaFormat;
	bool centered;
	PD_vect2 getSize();
	bool reversed;
};

#endif
